package com.ruoyi.web.controller.dlxx;

import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.dlxx.domain.Querys;
import com.hikvision.artemis.sdk.ArtemisHttpUtil;
import com.hikvision.artemis.sdk.config.ArtemisConfig;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.dlxx.spy.ArtemisPostTest;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping("/video")
public class ArtemisPost extends BaseController {
	@Resource
	private ArtemisPostTest artemisPostTest;


	@PostMapping("/getUrls")
	@ResponseBody
	public String getUrls(@RequestBody Querys querys) throws Exception
	{
		String result = artemisPostTest.callPostStringApi(querys);
		return result;
	}
}
